/**
 * Project: push-center-biz-dal
 * 
 * File Created at 2014年10月9日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package com.greenline.push.core.pushcenter;

import java.util.Date;

import com.greenline.push.dal.pushcenter.dataobject.TaskLogDO;
import com.greenline.push.dal.query.TaskLogQuery;

/**
 * @Type TaskSyncManager
 * @Desc
 * @author shuai.zuo
 * @date 2014年10月9日
 * @Version V1.0
 */
public interface TaskLogManager {
    /**
     * 添加任务运行记录
     * 
     * @param taskLog
     * @return
     */
    public Long addTaskLog(TaskLogDO taskLog);

    /**
     * 更新任务信息
     * 
     * @param taskLog
     */
    public void updateTaskLog(TaskLogDO taskLog);

    /**
     * 获取最后的执行时间
     * 
     * @param taskType
     * @return
     */
    public Date getTaskLogLastTime(String taskType);

    public TaskLogQuery queryTaskLog(TaskLogQuery query);
}
